<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:th="http://www.thymeleaf.org">

<!--引入头部设置部分-->
<head th:replace="share/common::head('电商平台-新增用户')"></head>

<body>

<div id="main-wrapper">

    <!--引用头部部分-->
    <div th:replace="share/common::header"></div>

    <!--引用侧边栏部分-->
    <div th:replace="share/common::aside"></div>

    <!--内容部分-->
    <div class="page-wrapper">

        <!--站点地图-->
        <div class="page-breadcrumb">
            <div class="row">
                <div class="col-12 d-flex no-block align-items-center">
                    <h4 class="page-title">新增用户</h4>
                    <div class="ml-auto text-right">
                        <nav aria-label="breadcrumb">
                            <ol class="breadcrumb">
                                <li class="breadcrumb-item"><a th:href="@{/index}">Home</a></li>
                                <li class="breadcrumb-item" aria-current="page"><a th:href="@{/user/}">用户列表</a></li>
                                <li class="breadcrumb-item active" aria-current="page">修改密码</li>
                            </ol>
                        </nav>
                    </div>
                </div>
            </div>
        </div>

        <!--页面内容-->
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    <div class="card">
                        <form id="form1" th:action="@{/user/disabled}" th:project_path="@{/}" th:tag="append" enctype="multipart/form-data" method="post" class="form-horizontal">
                            <div class="card-body">
                                <input type="hidden" name="id" id="id" th:value="${user.id}">
                                <div class="form-group row">
                                    <label for="username" class="col-sm-1 text-left control-label col-form-label">用户名称</label>
                                    <div class="col-sm-6">
                                        <input type="text" id="username" name="username" placeholder="请输入用户名称" class="form-control" th:value="${user.username}">
                                    </div>
                                    <label id="username_info" class="col-sm-5 text-left control-label col-form-label"></label>
                                </div>
                                <div class="form-group row">
                                    <label for="password" class="col-sm-1 text-left control-label col-form-label">用户密码</label>
                                    <div class="col-sm-6">
                                        <input type="password" id="password" name="password" placeholder="请输入用户密码" class="form-control">
                                    </div>
                                    <label id="password_info" class="col-sm-5 text-left control-label col-form-label"></label>
                                </div>

                            </div>
                            <div class="border-top">
                                <div class="card-body">
                                    <button type="button" id="btn_submit" class="btn btn-outline-primary">保存提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

        <!--引用网页脚部-->
        <div th:replace="share/common::footer"></div>

    </div>

</div>

<!--引用JS资源部分-->
<div th:replace="share/common::js_resources"></div>

<script th:src="@{/js/validata/regex.js}"></script>
<script th:src="@{/js/validata/user_validata.js}"></script>
</body>

</html>